﻿using System.Collections.Generic;
using Shuba.Model;

namespace Shuba.Business
{
    public class MaintenanceVisit
    {
        private Data.MaintenanceVisit _MaintenanceVisit;

        public MaintenanceVisit()
        {
            _MaintenanceVisit = new Data.MaintenanceVisit();
        }

        public int Save(MaintenanceVisitInfo MaintenanceVisitInf)
        {
            return _MaintenanceVisit.Save(MaintenanceVisitInf);
        }
        public int SaveFromWeb(MaintenanceVisitInfo MaintenanceVisitInf)
        {
            return _MaintenanceVisit.SaveFromWeb(MaintenanceVisitInf);
        }

        public List<MaintenanceVisitInfo> GetList(string value)
        {
            return _MaintenanceVisit.GetList(value);
        }

        public int GetRowNumber(string value)
        {
            return _MaintenanceVisit.GetRowNumber(value);
        }

        public List<MaintenanceVisitInfo> GetList(string value, int currPage, int dataPerPage)
        {
            return _MaintenanceVisit.GetList(value, currPage, dataPerPage);
        }

        public MaintenanceVisitInfo Get(string RECORD_ID)
        {
            return _MaintenanceVisit.Get(RECORD_ID);
        }

        public MaintenanceVisitInfo GetApprovalByID(string RECORD_ID)
        {
            return _MaintenanceVisit.GetApprovalByID(RECORD_ID);
        }

        //public List<MaintenanceVisitInfo> GetListApproval(string value, string UpdateBy)
        //{
        //    return _MaintenanceVisit.GetListApproval(value, UpdateBy);
        //}

        public List<MaintenanceVisitInfo> GetListApproval(string UpdateBy)
        {
            return _MaintenanceVisit.GetListApproval(UpdateBy);
        }

        public List<MaintenanceVisitInfo> GetListApproval(string UpdateBy, int currPage, int dataPerPage)
        {
            return _MaintenanceVisit.GetListApproval(UpdateBy, currPage, dataPerPage);
        }

        public int GetListApprovalNumber(string UpdateBy)
        {
            return _MaintenanceVisit.GetListApprovalNumber(UpdateBy);
        }

        public int Approve(string RECORD_ID, string ActType)
        {
            return _MaintenanceVisit.Approve(RECORD_ID, ActType);
        }

        public int Reject(string VISIT_ID)
        {
            return _MaintenanceVisit.Reject(VISIT_ID);
        }
    }
}
